import {ref} from "vue";

const useCoreDataTran=(coreDataArrThree=[],dataIndex=[])=>{
    let coreDataObj = ref([])
    coreDataArrThree.forEach((item)=>{
        let arr=[]
        item.forEach((value,i)=>{
            let obj={}
            obj[dataIndex[i]]=value
            arr.push(obj)
        })
        coreDataObj.value.push(arr)
    })
    return coreDataObj
}